define(function(require, exports, module) {
	var abpdata = require("abpinit");
	var abp = abpdata.abpstart;
	//dataModel需要传的模型值,option非必要参数，默认传空对象，done异步完成，fail异步失败，data.success数值成功返回
	/*客户分类*/
	//钉钉js
	require('http://g.alicdn.com/ilw/ding/0.8.9/scripts/dingtalk.js');
	//钉钉返回
	var dingTalkNav = require('dd_config');
	//ios
	dingTalkNav.LeftNavBar();
	//ad
	dingTalkNav.leftAndroid();
	var getSuppliertList = {
		supplier: function(templateId, mainId) {
			var option = {};
			var dataModel = {
				id: 0
			};
			abp.services.app.supplierCatalog.getList(dataModel, option).
			done(function(data) {
				var data1 = {};
				data1.list = data;
				var html = template(templateId, data1);
				$(mainId).append(html);
				if(data.success) {

				} else {

				}
			}).fail(function(data) {

			});
		}
	};
	module.exports = getSuppliertList;
});